# -*- coding: utf-8 -*-

"""
@Datetime: 2019/5/21
@Author: Zhang Yafei
"""


def outer(outertionName):
    print("-----outer---1----")

    def inner(a, b):
        print("----inner---1--")
        outertionName(a, b)
        print("---inner---2---")

    print("----outer---2---")
    return inner


@outer
def func(a, b):
    print("---func- a=%d,b=%d---" % (a, b))


# func = outer(func)

func(11, 22)

"""
-----outer---1----
----outer---2---
----inner---1--
---func- a=11,b=22---
---inner---2---
"""
